<%
  paginated_products = @searcher.products if params.key?(:keywords)
  paginated_products ||= products
%>
<% if products.empty? %>
  <h4><%= t(:no_products_found) %></h4>
<% elsif params.key?(:keywords) %>
  <h4><%= t(:search_results, :keywords => h(params[:keywords])) %></h4>
<% end %>
	
<% if products.any? %>
<div class="collections">
	<h4 class="sechead">PRODUCTS</h4>
	<%stock_val=find_stock_value("show_zero_stock_products")%>
<div class="collection-img-wrap products">
<% products.each do |product| %>
<% if stock_val || product.has_stock? %>                                                      
		<div class="coll-left">
					<div id="product_<%= product.id %>" data-hook="products_list_item">
				<div class="coll-img"><a href=""><%= link_to small_image(product), product %></a></div>
				<div class="coll-info">
						<div class="item-name"><%=product.name.capitalize%></div>
						<div class="price-enlarge-buy">
								<p class="price"><span></span><%= product_price(product) %></p>
								<%= link_to "BUY-IT", product,:class=>"buy-it"%>
						</div>
				</div>
				</div>
		</div>
<% end %>
<% end %>

</div><!--collection-img-wrap-->
</div>						
<% end %>

<div class="pagination-wrap"><% if paginated_products.respond_to?(:total_pages)
      params.delete(:search)
      params.delete(:taxon)

%><%= will_paginate(paginated_products,
                    :previous_label => "&#171; #{t('previous')}",
                    :next_label => "#{t('next')} &#187;") %>
<% end %></div>